#!/bin/bash
set -e

if [ "${1:0:1}" = "" ]; then
   
   # cd vendors 
   # npm install --production
   # cd ..
   
   pm2 start "vendors/server/app.js" --name yapi
   pm2 logs -f
fi

exec "$@"